package com.tyao.note.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *   
 *
 *
 * @mbg.generated do_not_delete_during_merge Tue Jul 17 09:29:34 CST 2018
 */
public class BTag {
    private Integer id;

    private String tagName;

    /**
     * 父标签id，默认0，代表"无"
     */
    private Integer parentId;

    /**
     * 用户id
     */
    private Integer userId;
    
    /**
     * 顺序编号
     */
    private Integer sequence;

    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    private Date createTime;

    private List<BTag> childs=new ArrayList<BTag>();
    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_tag.id
     *
     * @return the value of b_tag.id
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_tag.id
     *
     * @param id the value for b_tag.id
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_tag.tag_name
     *
     * @return the value of b_tag.tag_name
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public String getTagName() {
        return tagName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_tag.tag_name
     *
     * @param tagName the value for b_tag.tag_name
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public void setTagName(String tagName) {
        this.tagName = tagName == null ? null : tagName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_tag.parent_id
     *
     * @return the value of b_tag.parent_id
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public Integer getParentId() {
        return parentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_tag.parent_id
     *
     * @param parentId the value for b_tag.parent_id
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    
    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_tag.sequence
     *
     * @return the value of b_tag.sequence
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public Integer getSequence() {
        return sequence;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_tag.sequence
     *
     * @param sequence the value for b_tag.sequence
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column b_tag.remark
     *
     * @return the value of b_tag.remark
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public String getRemark() {
        return remark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column b_tag.remark
     *
     * @param remark the value for b_tag.remark
     *
     * @mbg.generated Tue Jul 17 09:29:34 CST 2018
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
    
    public void setChilds(List<BTag> childs) {
    	this.childs=childs;
    }
    public List<BTag> getChilds(){
    	return this.childs;
    }
    
	@Override
	public String toString() {
		return "BTag [id=" + id + ", tagName=" + tagName + ", parentId=" + parentId + ", sequence=" + sequence
				+ ", remark=" + remark + "]";
	}
    
    
}